package top.hzy520.dept.dao;

import org.apache.ibatis.annotations.Mapper;
import top.hzy520.dept.entity.Dept;

import java.util.List;

@Mapper
public interface DeptMapper {
    int deleteByPrimaryKey(Long id);

    int insert(Dept record);

    int insertSelective(Dept record);

    Dept selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(Dept record);

    int updateByPrimaryKey(Dept record);

    List<Dept> selectDeptList();

    List<Dept> selectDeptByParentId(Long id);

    Dept selectDeptByName(String name);
}